215. 数组中的第K个最大元素
https://leetcode.cn/problems/kth-largest-element-in-an-array/description/

class Solution {
public:
    int findKthLargest(vector<int>& nums, int k) {
        priority_queue<int> q;
        
        for(auto e:nums)
            q.push(e);
        
        while(--k)
            q.pop();
        
        return q.top();
    }
};